﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HeadFirst._05.Singleton._01
{
    public class Singleton
    {
        private static Singleton uniqueInstance;
        public static Singleton GetInstance() 
        {
            if (uniqueInstance == null) 
            {
                uniqueInstance = new Singleton();
            }
            return uniqueInstance;
        }
        private Singleton() { }
    }
}
